using UnityEngine;
using System.Collections;
using System;

public class ShowResults : MonoBehaviour 
{
    float TimeAlive;
    int EnemiesKilled;
    public TextMesh resultsText;

	void Start () 
    {
	    TimeAlive = PlayerPrefs.GetFloat("TimeAlive");
        EnemiesKilled = PlayerPrefs.GetInt("Kills");

        resultsText.text = "Enemies Eliminated: " + EnemiesKilled.ToString() + "\nTime Remained Alive: " + TimeSpan.FromSeconds((int)TimeAlive).ToString();
	}
}
